/**
 * @文件名 BaseDwrservice.java
 * @包名 com.ykfk.cngrain.tbw
 * @说明 DWR 父类文件
 * @作者 wdfang
 * @时间 2013-1-30 上午12:39:07
 * @版本 V1.0
 */ 
package com.ykfk.cngrain.tbw;

import javax.servlet.ServletConfig;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import org.directwebremoting.WebContextFactory;

import uk.ltd.getahead.dwr.WebContext;

/**
 * @类名 BaseDwrservice
 * @描述 DWR 父类 获得request，response等信息
 * @作者 wdfang
 * @日期 2013-1-30 上午12:39:07
 * ========修改日志=======
 *
 */
public class BaseDwrservice {
	public HttpServletRequest request;
	public HttpServletResponse response;
	public HttpSession session;
	public ServletConfig servletConfig;
	
	WebContext ctx = (WebContext) WebContextFactory.get();
	BaseDwrservice(){
		servletConfig = ctx.getServletConfig();
		session = ctx.getSession();
		response = ctx.getHttpServletResponse();
		request = ctx.getHttpServletRequest();
	}
}
